| eCircuit Center |
|
|
About SPICE |
SPICE Basics | Running SPICE
| CIRCUIT COLLECTION |
SPICE Commands | SPICE Demos and Downloads |
OP AMP - MAX SLEW RATECIRCUIT OP_SLEW_RATE.CIR Download the SPICE file Entering the electronics field, one question quickly came to mind: Why
the mind-boggling variety of op amps in the databook? I discovered that a
key element of practical amplifier design requires choosing a device whose
limitations won't significantly degrade the signal of interest.
This degradation can appear in the form of distortion, clipping, DC offset,
noise, attenuation and phase (time) shift. SINE WAVE DRIVER
Setting your bandwidth to the sine frequency (fc = 2MHz) is obviously a bad idea. This cuts the 2 MHz signal down by 0.707 and delays it by an 1/8 of a wave (-45 deg). Instead try fc >= 20 MHz. The table above shows that at f / fc = 2MHz / 20MHz = 0.1, the low-pass filter response imposes only a small attenuation and delay. SLEW-RATE
When the does the fastest slew occur? The greatest value for the cos term happens at t=0. (This makes sense! The sine wave slews the fastest when it crosses zero at t=0.) Therefore, the max slew rate is
TEST RUN - SQUARE WAVE
Looking at your company's stock, you see two high speed devices in your company stock.
As far as bandwidth goes, all exceed the 7 MHz requirement. However,
regarding slew rate, only OP_002 clears the bar of 160V/us. Unfortunately,
the OP_002 is far more expensive. Therefore, you must convince the project
manager it's worth the money. I've included a fantasy device (no slew rate
limit) to demonstrate how an inexperienced engineer (like myself) once
walked down the path of self delusion.
where XOP1 is the op amp, nodes 1 and 2 are the inputs, node 3 is the output and OP_000 is the name of the subcircuit. You can find the actual subcircuit at the bottom of the netlist between statements.
Initially, XOP1 is
defined by our fantasy device OP_000 - no slew limit. Run a Transient
Analysis and plot the input V(1) and output V(3). Notice how the output's
rapid change looks impressive rising in less than 10ns!
Reviewing your stock of devices, it's clear which one is the winner. But, let's see
what the others do. Finally, swap the OP_001 for the OP_002 (200V/us). That's better - the output swings pure and true like the input. This simple demo makes a compelling case: research + math + simulation = good design practice. The last step, of course, is actually building the circuit and hanging a scope at the output.
RELATED TOPICS
SPICE FILE OP_SLEW_RATE.CIR
*
* SQUARE WAVE INPUT
VS1 1 0 AC 1 PWL(0NS 0V 1NS 10V)
*
* SIN WAVE INPUT
VS2 11 0 AC 1 SIN(0V 10VPEAK 2E6HZ)
*
*
* NON INVERTING AMP 1
R1 0 2 1000K
R2 2 3 1
XOP1 1 2 3 op_000
RL1 3 0 10k
* NON INVERTING AMP 2
R11 0 12 1000K
R12 12 13 1
XOP11 11 12 13 op_000
RL11 13 0 10k
* OP AMP MODELS *******************************
* Device Pins In+ In- Vout
.SUBCKT op_000 1 2 82
*
* INPUT R
RIN 1 2 1e9
*
* AMPLIFIER STAGE: GAIN, POLE, SLEW
* Aol=1000000, fu=40000000 Hz, Slew=100 V/us
G1 0 10 VALUE = { 2.51322e-3 * V(1,2) }
R1 10 0 3.97897e8
C1 10 0 1e-11
*
* OUTPUT STAGE
EOUT 80 0 10 0 1
ROUT 80 82 100
*
.ENDS
************************************************
* Device Pins In+ In- Vout
.SUBCKT op_001 1 2 82
*
* INPUT R
RIN 1 2 1e9
*
* AMPLIFIER STAGE: GAIN, POLE, SLEW
* Aol=1000000, fu=40000000 Hz, Slew=100 V/us
G1 0 10 VALUE = { LIMIT( 2.51322e-3 * V(1,2), +0.001, -0.001 ) }
R1 10 0 3.97897e8
C1 10 0 1e-11
*
* OUTPUT STAGE
EOUT 80 0 10 0 1
ROUT 80 82 100
*
.ENDS
************************************************
* Device Pins In+ In- Vout
.SUBCKT op_002 1 2 82
*
* INPUT R
RIN 1 2 1e9
*
* AMPLIFIER STAGE: GAIN, POLE, SLEW
* Aol=1000000, fu=40000000 Hz, Slew=200 V/us
G1 0 10 VALUE = { LIMIT( 1.25661e-3 * V(1,2), +0.001, -0.001 ) }
R1 10 0 7.95793e8
C1 10 0 5e-12
*
* OUTPUT STAGE
EOUT 80 0 10 0 1
ROUT 80 82 100
*
.ENDS
* ANALYSIS *************************************
.TRAN 0.1NS 500NS
*.AC DEC 20 0.1 1000MEG
.PROBE
.END
© 2010 eCircuit Center |
|||||||||||||||||||||||||||||||||||||||||||||||||